import request from '@/utils/request'

// 查询监测项分组列表
export function listDispatchMonitoringItemGroup(query) {
  return request({
    url: '/system/dispatchMonitoringItemGroup/list',
    method: 'get',
    params: query
  })
}

// 查询监测项分组详细
export function getDispatchMonitoringItemGroup(monitoringItemGroupId) {
  return request({
    url: '/system/dispatchMonitoringItemGroup/' + monitoringItemGroupId,
    method: 'get'
  })
}

// 新增监测项分组
export function addDispatchMonitoringItemGroup(data) {
  return request({
    url: '/system/dispatchMonitoringItemGroup',
    method: 'post',
    data: data
  })
}

// 修改监测项分组
export function updateDispatchMonitoringItemGroup(data) {
  return request({
    url: '/system/dispatchMonitoringItemGroup',
    method: 'put',
    data: data
  })
}

// 删除监测项分组
export function delDispatchMonitoringItemGroup(monitoringItemGroupId) {
  return request({
    url: '/system/dispatchMonitoringItemGroup/' + monitoringItemGroupId,
    method: 'delete'
  })
}
